import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/Home'
import Mine from '@/pages/mine/Mine'
import Decorate from '@/pages/decorate/Decorate'
import roomDetails from '@/pages/decorate/roomDetails'
import threeStep from '@/pages/decorate/threeStep'
import fourStep from '@/pages/decorate/fourStep'
import fitmentDetails from '@/pages/decorate/fitmentDetails'
import message from '@/pages/views/message'
import userAuth from '@/pages/views/userAuth'
import myCollect from '@/pages/mine/myCollect'
import myDiscount from '@/pages/mine/myDiscount'
import serviceStaff from '@/pages/views/serviceStaff'
import implimentation from '@/pages/construction/implimentation'
import protocol from '@/pages/family/protocol'
import meet from '@/pages/views/meet'
import neighbouring from '@/pages/views/neighbouring'
import schedule from '@/pages/family/schedule'
import seeing from '@/pages/construction/seeing'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },{
      path: '/Mine',
      name: 'Mine',
      component: Mine,
      meta: {
        keepAlive: false
      }
    },{
      path: '/Decorate',
      name: 'Decorate',
      component: Decorate,
      meta: {
        keepAlive: true
      }
    },{
      path: '/decorate/roomDetails/:stepData',
      name: 'roomDetails',
      component: roomDetails,
      meta: {
        keepAlive: false
      }
    },{
      path: '/decorate/threeStep',
      name: 'threeStep',
      component: threeStep,
      meta: {
        keepAlive: false
      }
    },{
      path: '/decorate/fitmentDetails',
      name: 'fitmentDetails',
      component: fitmentDetails,
      meta: {
        keepAlive: false
      }
    },{
      path: '/decorate/fourStep',
      name: 'fourStep',
      component: fourStep,
      meta: {
        keepAlive: false
      }
    },{
      path: '/views/message',
      name: 'message',
      component: message,
      meta: {
        keepAlive: false
      }
    },{
      path: '/views/userAuth',
      name: 'userAuth',
      component: userAuth,
      meta: {
        keepAlive: false
      }
    },{
      path: '/views/myCollect',
      name: 'myCollect',
      component: myCollect,
      meta: {
        keepAlive: false
      }
    },{
      path: '/views/myDiscount',
      name: 'myDiscount',
      component: myDiscount,
      meta: {
        keepAlive: false
      }
    },{
      path: '/views/serviceStaff',
      name: 'serviceStaff',
      component: serviceStaff,
      meta: {
        keepAlive: false
      }
    },{
      path: '/construction/implimentation',//在施工地
      name: 'implimentation',
      component: implimentation,
      meta: {
        keepAlive: false
      }
    },{
      path: '/family/protocol',
      name: 'protocol',
      component: protocol,
      meta: {
        keepAlive: false
      }
    },{
      path: '/views/meet',
      name: 'meet',
      component: meet,
      meta: {
        keepAlive: false
      }
    },{
      path: '/views/neighbouring',//到店体验
      name: 'neighbouring',
      component: neighbouring,
      meta: {
        keepAlive: false
      }
    },{
      path: '/family/schedule',//我家已转工程客户
      name: 'schedule',
      component: schedule,
      meta: {
        keepAlive: false
      }
    },{
      path: '/construction/seeing',//工地直播
      name: 'seeing',
      component: seeing,
      meta: {
        keepAlive: false
      }
    }
    

  ]
})
 